﻿namespace CommonUtils
{
    public class StringStringPair : Pair<string, string>
    {
        public StringStringPair()
        => ConsoleUtil.Write("new PairStringString()");

        public StringStringPair(string key, string value) : base(key, value)
        => ConsoleUtil.Write("new PairStringString(string key, string value)");

        //测试目的为 初始化会不会默认继承base？结论是 默认继承无参数base，有参数base需主动继承
        public static void TestBase()
        {
            new StringStringPair();
            ConsoleUtil.WriteLine();
            new StringStringPair("1", "1");
        }
    }
}
